﻿using FluentValidation;

namespace Services.Activity.WebApi.Request;

public class EnlistVolunteerRequest
{
    public long ActivityId { get; set; }
}
public class EnlistVolunteerRequestValidator:AbstractValidator<EnlistVolunteerRequest>
{
    public EnlistVolunteerRequestValidator()
    {      
        RuleFor(x => x.ActivityId).NotEmpty().NotNull().WithMessage("参加活动的索引不能为空");
    }
}
